from django.shortcuts import render

# Create your views here.

from django.http import HttpResponse,JsonResponse

def my_view(request):
    # ...

    # Return a "created" (201) response code.
    print("请求了")
    return JsonResponse({"data":"yes"})